import request from '@/utils/request'
// let common = '/dxchat';

// 原本写法
// export function getList(params) {
//   return request({
//     url: '/table/list',
//     method: 'get',
//     params
//   })
// }

//标签管理-------------------------------------------

// 标签新增
export const addTagInfo = param => {
  return request.post('/qualityTesting/tagInfo/addTagInfo', param)
}
// 标签修改
export const updateTagInfo = param => {
  return request.post('/qualityTesting/tagInfo/updateTagInfo', param)
}
// // 查询标签--分页
// export const findTagInfoToPage = param => {
//   return request.post('/qualityTesting/tagInfo/findTagInfoToPage', param)
// }
// // 批量更改标签状态-停用/启用/删除
// export const changeTagInfoState = param => {
//   return request.post('/qualityTesting/tagInfo/changeTagInfoState', param)
// }
// 删除标签
export const deleteTagInfo = param => {
  return request.post('/qualityTesting/tagInfo/deleteTagInfo', param)
}
// 标签树查询
export const queryTagTree = param => {
  return request.post('/qualityTesting/tag/queryTagTree', param)
}
// 标签树查询
export const findTree = param => {
  return request.post('/qualityTesting/scene/findTree', param)
}

// 停用或启用标签
export const changOperate = param => {
  return request.post('/qualityTesting/tagInfo/changOperate', param)
}

// （新）新建标签
export const addTagCompose = param => {
  return request.post('/qualityTesting/tagCompose/addTagCompose', param)
}

// （新）标签编辑
export const editTagCompose = param => {
  return request.post('/qualityTesting/tagCompose/editTagCompose', param)
}

// （新）查询组合标签列表
export const findTagInfoToPage = param => {
  return request.post('/qualityTesting/tagCompose/findTagInfoToPage', param)
}

// （新）删除、停用、启用标签 - 组合标签
export const changeTagInfoState = param => {
  return request.post('/qualityTesting/tagCompose/changeTagInfoState', param)
}

// （新）停用、启用标签 - 标准标签
export const changeTagInfoByCommonState = param => {
  return request.post('/qualityTesting/tagCommon/changeTagInfoState', param)
}

// 新点击二级树标签查询
export const queryTagChidren = param => {
  return request.post('/qualityTesting/tag/queryTagChidren', param)
}

// 场景树查询
export const findSceneToPage = param => {
  return request.post('/qualityTesting/sceneInfo/findSceneToPage', param)
}

// 场景树查询
export const findSceneToPageScene = param => {
  return request.post('/qualityTesting/scene/findSceneToPage', param)
}
// 场景树子集查询
export const getSceneChildren = param => {
  return request.post('/qualityTesting/scene/getSceneChildren', param)
}

// 场景删除
export const deleteSceneInfo = param => {
  return request.post('/qualityTesting/sceneInfo/delete', param)
}

// 场景添加
export const addSceneInfo = param => {
  return request.post('/qualityTesting/sceneInfo/add', param)
}

// 场景修改
export const eidtSceneInfo = param => {
  return request.post('/qualityTesting/sceneInfo/eidt', param)
}

//  场景树删除
export const deleteScene = param => {
  return request.post('/qualityTesting/scene/delete', param)
}

//  场景树添加
export const addQualityTesting = param => {
  return request.post('/qualityTesting/scene/add', param)
}
//  场景树修改
export const eidtQualityTesting = param => {
  return request.post('/qualityTesting/scene/eidt', param)
}

//  场景树修改
export const findSceneTree = param => {
  return request.post('/qualityTesting/scene/findSceneTree', param)
}

